package controlador;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import controlador.*;
import vista.AbstractFactory;
import vista.Menu;

public class Menuc implements ActionListener{
	
	private Menu Vmenu;
	
	public Menuc(){
		super();
		this.Vmenu = new Menu();
		this.Vmenu.setLocationRelativeTo(null);
		this.Vmenu.setVisible(true);	
		this.Vmenu.addListener(this);
		
	}
	public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();
		 if (actionCommand.equals("Ingrediente")) {
			new Ingredientec();
		}
		else if (actionCommand.equals("Compra")) {
			new Comprac();
		}
		else if (actionCommand.equals("Categoria")){
			new Categoriac();
		}
		else if (actionCommand.equals("Orden")){
			new Ordenc();
		}
		else if (actionCommand.equals("Producto")){
			new Productoc();
		}
  }
}